import request from '@/utils/request';

export async function getSupplierByPage (params: any) {
    return request('/api/basicData/getSupplierByPage', {
    method: 'POST',
    data: params,
  });
}



export async function addSupplier (params: any) {
    return request('/api/basicData/addSupplier', {
    method: 'POST',
    data: params,
  });
}

export async function updateSupplier (params: any) {
    return request('/api/basicData/updateSupplier', {
    method: 'POST',
    data: params,
  });
}

export async function delSupplier (params: any) {
    return request('/api/basicData/delSupplier', {
    method: 'POST',
    data: params,
  });
}
export default { getSupplierByPage, addSupplier, updateSupplier, delSupplier }
